package com.example.demo.girlException;

import com.example.demo.enums.ResultEnum;

/**
 * @author 王盼
 * @create 2018-11-19 14:58
 */
public class GirlException extends RuntimeException{
  private Integer code;
  public GirlException(ResultEnum resultEnum) {
    super(resultEnum.getMsg());
    this.code = resultEnum.getCode();
  }
  public Integer getCode() {
    return code;
  }
  public void setCode(Integer code) {
    this.code = code;
  }
}